<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <form action="{:url('submitEditFilterAction')}" method="post" >
        <input type="hidden" name="filter_id" value="{$filter.id}">
        <div>操作属性</div>
        <ul>
            <li>
                <label for="table_id">关联表</label>
                <input type="text" id="table_id" name="table_id" value="{$filter.table_id}" readonly/>
            </li>
            <li>
                <label for="name">名称</label>
                <input type="text" id="name" name="name" value="{$filter.name}"/>
            </li>
            <li>
                <label for="title">标题</label>
                <input type="text" id="title" name="title" value="{$filter.title}"/>
            </li>
            <li>
                <label for="describe">描述</label>
                <input type="text" id="describe" name="describe" value="{$filter.describe}"/>
            </li>
            <li>
                <label for="type">类型</label>
                <select name="type" id="type">
                    <option value="keyword" <?php if($filter["type"]==="keyword") echo "selected"; ?>>关键词</option>
                    <option value="date" <?php if($filter["type"]==="date") echo "selected"; ?>>日期</option>
                    <option value="timePeriods" <?php if($filter["type"]==="timePeriods") echo "selected"; ?></option>>时间范围</option>
                </select>
            </li>
            <li>
                <label for="fields">指定字段</label>
                <input type="text" id="fields" name="fields" value="{$filter.fields}"/>
            </li>
            <li>
                <label for="params">参数</label>
                <textarea name="params" id="params" cols="30" rows="10">{$filter.params}</textarea>
            </li>
        </ul>
        <button type="submit">提交</button>
    </form>
</body>
</html>
